<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>

<%@ taglib prefix="s" uri="/struts-tags"%>

<%@ include file="PageRedirection.jsp" %>

<div style="margin: 0px 0px 22px 0px" align="center">
	<!-- <img src="images/middle/middle-banner.jpg" alt=" " width="495"
		height="188" /> -->
	<s:set var="count" value="0"></s:set>
	<s:iterator value="bannerCampaignsList">
		<s:if test="%{bannerSettings.id == 3}">
			<s:if test="%{#count < bannerSettings.noOfFormat}">
				<s:if test="%{maxViews > 0}">
					<s:if test="%{maxViews > views}">
						<div style="margin: 0px 0px 22px 0px">
							<a target="<s:property value="bannerSettings.linkTarget"/>"
								href="clickOnBanner.htm?adId=<s:property value="id"/>" class="banner-ads-link"
								title="<s:property value="altText"/>"> <img border="0"
									src="servlet/ImageServlet?dto=BannerCampaigns&id=<s:property value="id"/>"
									alt="<s:property value="altText"/>"
									title="<s:property value="underText"/>"> </a>
							<s:if test="%{bannerSettings.textBelow == true}">
								<div style="margin: 2px 0px 0px 0px" align="center">
									<a target="<s:property value="bannerSettings.linkTarget"/>"
								href="clickOnBanner.htm?adId=<s:property value="id"/>" class="banner-ads-link"
								title="<s:property value="altText"/>"><s:property
											value="campaign" /> </a>
								</div>
							</s:if>
						</div>
						<s:set var="count" value="%{#count + 1}" />
					</s:if>
				</s:if>
			</s:if>
		</s:if>
	</s:iterator>
</div>
<div style="margin: 0px 0px 0px 0px">
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
		<tr>
			<td>
				<div class="blue-text16" style="margin: 0px 0px 0px 0px">
					<s:text name="index.Featured" />
					<span class="grey-text16"><s:text name="index.Items" /></span>
				</div>
				<div class="header-separator-bg" style="margin: 10px 5px 17px 0px"></div>
			<s:iterator value="featuredItems" status="row">
			<s:set value="'violet-sub-header-text'" var="txtClass" />
			<s:set value="'light-blue-bg'" var="bgClass" />

			<s:if test="#row.even">
				<s:set value="'grey-sub-header-text'" var="txtClass" />
				<s:set value="'light-gold-bg'" var="bgClass" />
			</s:if>
			<div style="margin: 0px 0px 12px 0px">
				<div style="margin: 0px;">
					<a href="showItem.htm?cid=<s:property value="itemId" />" class="<s:property value="#txtClass" />"><s:property value="title" /></a>
				</div>
				<table border="0" cellpadding="0" cellspacing="0" width="100%">
					<tbody>
						<tr>
							<td class="<s:property value="#bgClass" />">
								<div style="margin: 10px 10px 12px;">
									<table border="0" cellpadding="0" cellspacing="0" width="100%">
										<tbody>
											<tr>
												<td valign="top" width="80">
													<div style="margin: 0px 5px 0px 0px;">
														<img src="images/middle/product-image.jpg" alt=" " class="product-border" width="80" height="80">
													</div>
												</td>
												<td valign="top">
													<table border="0" cellpadding="0" cellspacing="0"
														width="100%">
														<tbody>
															<tr>
																<td valign="top" width="32%">
																	<div style="margin: 0px;" class="grey-border-right">
																		<div class="blue-text12bold"
																			style="margin: 0px 0px 5px;">

																			Location :
																			<span class="common-text-black"><s:property value="locationCategoriesByCountry.categoryName" /></span>
																		</div>
																		<div class="blue-text12bold"
																			style="margin: 0px 0px 5px;">
																			Time left :
																			<span class="common-text-black"><s:date name="endTime" format="%{getText('struts.date.format.days')}" nice="true" /></span>
																		</div>
																		<div class="blue-text12bold"
																			style="margin: 0px 0px 15px;">
																			Price :
																			<span class="red-text12bold"><s:property value="currency.currency" /> <s:property value="startBid" /></span>

																		</div>
																	</div>
																</td>
																<td valign="top" width="68%">
																	<div class="common-text11"
																		style="margin: 0px 0px 0px 13px;">
																		<s:property value="description" escape="false" />
																	</div>
																</td>
															</tr>
														</tbody>
													</table>
												</td>
											</tr>
										</tbody>
									</table>
								</div>
							</td>
						</tr>
					</tbody>
				</table>
			</div>
		</s:iterator>
			</td>
		</tr>
	</table>
</div>
